<?php

declare(strict_types=1);

namespace App\Model\PssModel;

use App\Model\BaseModel\BasePssModel;
use Service\AppService\IdService;
class OrderRefundLog extends BasePssModel
{
    public $table = 'order_refund_log';
    /**
     * 写入售后订单日志数据
     * @param string $order_refund_id
     * @param string $contents
     * @param int $create_user_id
     * @param string $create_user_name
     */
    public function addLog(string $order_refund_id,string $contents,int $create_user_id,string $create_user_name)
    {
        $data = [
            'id'                => IdService::instance()->getOtherID(),
            'order_refund_id'   => $order_refund_id,
            'contents'          => $contents,
            'system_user_id'    => $create_user_id,
            'system_user_name'  => $create_user_name,
            'cd'                => time(),
        ];
        return $this->add($data);
    }
    
}
